package com.firmboy.restdocs.hello.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
import java.util.Map;

/**
 * @author firmboy
 * @create 2018-03-13 下午6:09
 **/
@RestController
public class HomeController {

    @GetMapping("/")
    public Map<String,Object> greeting(){
        return Collections.singletonMap("message","Hello World");
    }


}
